package lion.bugrambo;

import lion.mcenter.MFolderManager;
import lion.web.MenuManager;
import lion.web.module.IModule;
import lion.web.module.anno.Module;
import lion.web.platform.priv.type.PrivCategoryManager;
import lion.web.platform.priv.type.TermPrivCategory;

/**
 * @author lion
 * @email hl_0074@sina.com
 * @date 2015年2月20日
 */
@Module(value = "bugrambo", depends = { "platform" })
public class BugRamboModule implements IModule {

	private static TermPrivCategory BRQ = new TermPrivCategory("brq", "需求与缺陷");

	@Override
	public void init() {

		MenuManager.addMenu(null, "", "BugRambo", "bug", "需求与缺陷管理");
		MenuManager.addMenu("BugRambo", "/#{admin}/br/project", "BR.P", "application_xp_terminal", "项目管理");
		MenuManager.addMenu("BugRambo", "/#{admin}/br/requirement", "BR.Q", "inbox_document", "需求管理");
		MenuManager.addMenu("BugRambo", "/#{admin}/br/bugs", "BR.B", "bug", "缺陷管理");
		// MenuManager.addMenu("BugRambo", "/#{admin}/br/testing", "BR.T",
		// "cog", "测试管理");

		PrivCategoryManager.addPrivCategory(BRQ);

		BRQ.addTermPriv("BR.PROJ", "管理项目", null);
		BRQ.addTermPriv("BR.PROJ.Model", "管理模块", null);
		BRQ.addTermPriv("BR.PROJ.Members", "管理成员", null);

		BRQ.addTermPriv("BR.R.DEL", "删除需求", null);
		BRQ.addTermPriv("BR.B.DEL", "删除缺陷", null);

		MFolderManager.registe("BR", "", "需求与缺陷管理");
	}

}